﻿using System;

public partial class CustomControls_TopSearches : System.Web.UI.UserControl
{
    protected void Page_Load(object sender, EventArgs e)
    {
        try
        {
            SearchTags tags = new SearchTags(Utils.GetApplicationSetting(Constants.PHYSICAL_PATH) + "SearchTags.xml");

            repTags.DataSource = tags.List;
            repTags.DataBind();
        }
        catch (Exception ex)
        {
            Response.Write(ex.ToString());
        }
    }
    protected string GetFontWeight(int occurances)
    {
        int wight = 10 + occurances;
        return "font-weight: " + wight + "px";
    }
}
